package com.ware4u.fx.news.entity;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@Schema(description = "板块")
@Entity
@Table(name = "W_CATALOG")
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@Getter
@Setter
@NoArgsConstructor
public class Catalog {

    @Schema(description = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    @Schema(description = "板块名字")
    @Column(name = "NAME", length = 50)
    private String name;
    @Schema(description = "板块编码")
    @Column(name = "CODE", length = 50)
    private String code;

}
